<?php


namespace app\manager\utils;


class FindString
{
    /*
     * 查找数组中，是否存在某字符
     */
    static public function searchKeyword($keyword, $searchArray = ["login","asyncLogin","asyncLogout"])
    {
        foreach($searchArray as $value)
        {
            if(strstr($keyword , $value) !== false)
            {
                return true;
            }
        }
        return false;
    }

}